<form action="/backend/permission_group/insert" method="post">
	<div class="form-row">
		<label for="name">分组名称</label>
		<input type="text" class="text" name="name"/>
	</div>
	<?php foreach ($all_permissions as $permission): ?>
		<dl class="form-row">
			<dt>
				<input type="checkbox" value="0"/>
				<?php echo $permission['controller']; ?>
			</dt>
			<?php foreach ($permission['actions'] as $action): ?>
				<dd>
					<input type="checkbox" name="path[]" value="<?php echo $action['path']; ?>"/>
					<?php echo $action['name']; ?>
				</dd>
			<?php endforeach; ?>
		</dl>
	<?php endforeach; ?>
	<div class="form-button">
		<input type="submit" name="submit" value="提交"/>
	</div>
</form>